package com.atguigu.util.homework3;

/**
 * @author caesar
 * @date 2025/7/4
 * @apiNote
 */
public class GoodsTest {


    public static void main(String[] args) {
        Goods javaBook = new Goods();
        javaBook.id = "1001024585";
        javaBook.title = "尚硅谷剑指Java";
        javaBook.price = 99.99;
        javaBook.stock = 1000;

        Goods mysqlBook = new Goods();
        mysqlBook.id = "1001023385";
        mysqlBook.title = "尚硅谷剑指MySQL";
        mysqlBook.price = 88.88;
        mysqlBook.stock = 1000;

        //打印商品的详细信息
        System.out.println("javaBook的id" + javaBook.id + "，title" + javaBook.title + "，price" + javaBook.price + "，stock" + javaBook.stock);
        System.out.println("mysqlBook的id" + mysqlBook.id + "，title" + mysqlBook.title + "，price" + mysqlBook.price + "，stock" + mysqlBook.stock);
    }


}
